package com.acme.domain.bank;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.acme.domain.account.Account;

public class Client implements Serializable {
	
	private List<Account> accounts = new ArrayList<Account>();
	
	private String name;
	private Gender gender;

	public Client(String name, Gender gender) {
		this.name= name;
		this.gender = gender;
	}

	public void addAccount(final Account account) {
		accounts.add(account);
	}

	public List<Account> getAccountsList() {
		return Collections.unmodifiableList(accounts);
	}
}
